package com.spboot.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.spboot.entity.Information;
import com.spboot.entity.Like;
import com.spboot.mapper.InformationMapper;
import com.spboot.page.PageInfo;
import com.spboot.service.InformationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author guocb
 * @since 2020-04-27
 */
@Service
public class InformationServiceImpl extends ServiceImpl<InformationMapper, Information> implements InformationService {

    @Override
    public List<Long> selectid() {
        return this.baseMapper.selectid();
    }

    @Override
    public List<Information> selecttype(Long typeid) {
        return this.baseMapper.selecttype(typeid);
    }

    @Override
    public List<String> selectall(Long Informationid) {
        return this.baseMapper.selectall(Informationid);
    }

    @Override
    public List<String> hinfor(Long typeid) {
        return this.baseMapper.hinfor(typeid);
    }

    @Override
    public PageInfo<Information> selectinfomation(IPage<Information> page, QueryWrapper<Information> queryWrapper) {
        return this.baseMapper.selectinfomation(page,queryWrapper);
    }

    @Override
    public IPage<Information> selectorder(Integer userid, PageInfo<Information> page, Wrapper<Information> paramWrapper) {
        return this.baseMapper.selectorder(userid, page, paramWrapper);
    }

    @Override
    public List<String> selectordernumber(Integer userid){
        return  this.baseMapper.selectordernumber(userid);
    }

    @Override
    public List<String> hselectinformation(Long informationid) {
        return this.baseMapper.hselectinformation(informationid);
    }

    @Override
    public List<Information> selectdescribea(Long typeid) {
        return this.baseMapper.selectdescribea(typeid);
    }
    @Override
    public IPage<Information> selectdescribeb(Long typeid, IPage<Information> page, Wrapper<Information> paramWrapper) {
        return this.baseMapper.selectdescribeb(typeid,page,paramWrapper);
    }


    @Override
    public List<String> selectdescribeversion(Long informationid) {
        return this.baseMapper.selectdescribeversion(informationid);
    }

    @Override
    public List<String> selectdescribename(Long informationid) {
        return this.baseMapper.selectdescribename(informationid);
    }

    @Override
    public List<String> selectdescribeprice(Long informationid) {
        return this.baseMapper.selectdescribeprice(informationid);
    }

    @Override
    public int Hupdate(String name, String describea, Long informationid) {
        return this.baseMapper.Hupdate(name,describea, informationid);
    }

    @Override
    public List<String> bingprice(String versiontype, Long informationid) {
        return this.baseMapper.bingprice(versiontype, informationid);
    }

}
